import axios from '../util/axios'

export function getBannerPic(params={}){
  return axios({
    url:'/admin/getBannerList',
    method:'GET',
    params
  })
}

export function deletePic(params={}){
  return axios({
    url:'/admin/deletePic',
    method:'DELETE',
    params
  })
}

export function addBannerData(params={}){
  return axios({
    url:'/admin/addBanner',
    method:'POST',
    params
  })
}

export function deletePicData(params={}){
  return axios({
    url:'/admin/deletePicData',
    method:'DELETE',
    params
  })
}

export function editBannerData(params={}){
  return axios({
    url:'/admin/editBannerData',
    method:'PUT',
    params
  })
}

export function changeSwitchValue(params={}){
  return axios({
    url:'/admin/changeSwitchValue',
    method:'PUT',
    params
  })
}

export function changeShortValue(params={}){
  return axios({
    url:'/admin/changeShortValue',
    method:'PUT',
    params
  })
}